package com.zf.spring.microservice.service.netty;

import com.alibaba.fastjson.JSONObject;

public class ResponseMessage {
	private boolean result;
	private Object content;

	@Override
	public String toString() {
		return JSONObject.toJSONString(this).toString();
	}

	public ResponseMessage(boolean result, Object content) {
		super();
		this.result = result;
		this.content = content;
	}

	/**
	 * @return the result
	 */
	public boolean isResult() {
		return result;
	}

	/**
	 * @param result
	 *            the result to set
	 */
	public void setResult(boolean result) {
		this.result = result;
	}

	/**
	 * @return the content
	 */
	public Object getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(Object content) {
		this.content = content;
	}

}
